home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 May / Chip Mayıs 2001.iso / prog / fire / 03 / setup.exe / Data.Cab / F2369_oemsetup.inf < prev    next >
Encoding:
INI File  |  2000-10-03  |  13.6 KB  |  420 lines

  1. [Identification]
  2.     OptionType = NetTransport
  3. [Options]
  4.     MCAFEEFW
  5. [FileConstants]
  6. UtilityInf      = "UTILITY.INF"
  7. subroutineinf   = "SUBROUTN.INF"
  8. SoftwareType    = "transport"
  9. Exit_Code       = 0
  10. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  11. Manufacturer    = "McAfee"
  12. ProductMajorVersion     = "2"
  13. ProductMinorVersion     = "10"
  14. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  15. ProductSoftwareName     = "McAfee Firewall Network Driver"
  16. ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\CSPCFW.SYS"
  17. NetRuleSoftwareType     = "McAfeeFW McAfeeTransport"
  18. NetRuleSoftwareUse      = $(SoftwareType)" yes yes"
  19. NetRuleSoftwareBindForm = """McAfeeFW"" yes yes simple"
  20. NetRuleSoftwareClass    = {"McAfeeTransport ndisTransport", "McAfeeTransport ndisWanTransport"}
  21.  
  22. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  23. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductSoftwareName)"\Parameters"
  24. [GeneralConstants]
  25. from      = ""
  26. to        = ""
  27. ExitCodeOk     = 0
  28. ExitCodeCancel = 1
  29. ExitCodeFatal  = 2
  30. KeyNull         = ""
  31. MAXIMUM_ALLOWED   = 33554432
  32. RegistryErrorIndex = NO_ERROR
  33. KeyProduct      = ""
  34. KeyParameters   = ""
  35. TRUE            = 1
  36. FALSE           = 0
  37. NoTitle            = 0
  38. ExitState   = "Active"
  39. OldVersionExisted = $(FALSE)
  40. DriverPath      = $(!STF_NTPATH)\drivers
  41. [date]
  42.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  43. [Identify]
  44.     read-syms Identification
  45.     set Status     = STATUS_SUCCESSFUL
  46.     set Identifier = $(OptionType)
  47.     set Media      = #("Source Media Descriptions", 1, 1)
  48.     Return $(Status) $(Identifier) $(Media)
  49. [ReturnOptions]
  50.     set Status        = STATUS_FAILED
  51.     set OptionList     = {}
  52.     set OptionTextList = {}
  53.     set LanguageList = ^(LanguagesSupported, 1)
  54.     Ifcontains(i) $($0) in $(LanguageList)
  55.     goto returnoptions
  56.     else
  57.     set Status = STATUS_NOLANGUAGE
  58.     goto finish_ReturnOptions
  59.     endif
  60. returnoptions = +
  61.     set OptionList     = ^(Options, 1)
  62.     set OptionTextList = ^(OptionsText$($0), 1)
  63.     set Status         = STATUS_SUCCESSFUL
  64. finish_ReturnOptions = +
  65.     Return $(Status) $(OptionList) $(OptionTextList)
  66. [InstallOption]
  67.     set Option   = $($1)
  68.     set SrcDir   = $($2)
  69.     set AddCopy  = $($3)
  70.     set DoCopy   = $($4)
  71.     set DoConfig = $($5)
  72.     set LanguageList = ^(LanguagesSupported, 1)
  73.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  74.     Return STATUS_NOLANGUAGE
  75.     endif
  76.     Debug-Output "OEMNXPNB.INF: STF_CWDDIR is: "$(!STF_CWDDIR)
  77.     Debug-Output "OEMNXPNB.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  78.     set-subst LF = "\n"
  79.     read-syms GeneralConstants
  80.     read-syms FileConstants
  81.     read-syms DialogConstants$(!STF_LANGUAGE)
  82.     ifstr(i) $(!NTN_Origination) == "NCPA"
  83.     set Continue = $(OK)
  84.     endif
  85.     read-syms FileConstants$(!STF_LANGUAGE)
  86.     detect date
  87.     set-title  $(FunctionTitle)
  88.     set to   = Begin
  89.     set from = Begin
  90.     set CommonStatus = STATUS_SUCCESSFUL
  91.     EndWait
  92. Begin = +
  93.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  94.     set StartLabel = removeadapter
  95.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  96.     set StartLabel = UpgradeSoftware
  97.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  98.     set StartLabel = bindingadapter
  99.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  100.     Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  101.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  102.         Debug-Output "OEMNXPNB.INF: ShellCode error: cannot get an error string."
  103.         goto ShellCodeError
  104.     endif
  105.     set Error = $($R0)
  106.     set from = end
  107.     set to = end
  108.     goto nonfatalinfo
  109.     else
  110.     set StartLabel = installadapter
  111.     endif
  112.     set RadioDefault = 2
  113.     set RadioIn = {$(RadioDefault)}
  114.     set from = $(fatal)
  115.     set to = $(fatal)
  116.     goto $(StartLabel)
  117. installadapter = +
  118.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  119.     Ifstr $(KeyProduct) != $(KeyNull)
  120.     CloseRegKey $(KeyProduct)
  121.     Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  122.         $(ProductVersion)
  123.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  124.         Debug-Output "ShellCode error: cannot get an error string."
  125.         goto ShellCodeError
  126.     endif
  127.     goto end
  128.     endif
  129.     CloseRegKey $(KeyProduct)
  130.     goto installproduct
  131. installproduct = +
  132.     StartWait
  133.     ifint $(OldVersionExisted) == $(FALSE)
  134.     Ifstr(i) $(DoCopy) == "YES"
  135.        Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  136.        Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  137.            Goto ShellCodeError
  138.        Else-Ifstr(i) $($R0) == STATUS_FAILED
  139.            Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  140.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  141.            goto ShellCodeError
  142.            endif
  143.            set Error = $($R0)
  144.            Goto fatal
  145.        Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  146.            Goto successful
  147.        Endif
  148.        Set SrcDir = $($R1)
  149.     Endif
  150.     install "Install-Option"
  151.     ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  152.        Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  153.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  154.            goto ShellCodeError
  155.        endif
  156.        set Error = $($R0)
  157.        goto fatal
  158.     endif
  159.     set OEM_ABANDON_ON = TRUE
  160.     Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  161.         $(ProductSoftwareName), +
  162.         $(ProductSoftwareName), +
  163.         $(ProductSoftwareDisplayName), $(STF_CONTEXTINFNAME), +
  164.         $(ProductSoftwareImagePath), "kernel", "TDI", {}, "",+
  165.         $(NetEventDLL)
  166.     set RegistryErrorIndex = $($R0)
  167.     Ifstr(i) $(RegistryErrorIndex) !=  NO_ERROR
  168.         EndWait
  169.         CloseRegKey $($R1)
  170.         CloseRegKey $($R2)
  171.         CloseRegKey $($R3)
  172.         CloseRegKey $($R4)
  173.         CloseRegKey $($R5)
  174.         goto fatalRegistry
  175.     endif
  176.     Set SoftProductKey      = $($R1)
  177.     Set SoftNetRuleKey      = $($R2)
  178.     Set SoftServiceKey      = $($R3)
  179.     set KeyParameters       = $($R4)
  180.     Set SoftLinkageKey      = $($R5)
  181.     set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  182.                {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  183.                {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  184.                {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  185.                {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  186.                {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  187.                {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  188.     Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  189.     set RegistryErrorIndex = $($R0)
  190.     Ifstr $(RegistryErrorIndex) != NO_ERROR
  191.         CloseRegKey $(SoftProductKey)
  192.         CloseRegKey $(SoftNetRuleKey)
  193.         CloseRegKey $(SoftServiceKey)
  194.         CloseRegKey $(SoftLinkageKey)
  195.         CloseRegKey $(KeyParameters)
  196.         goto fatalRegistry
  197.     endif
  198.     set NewValueList = {{type    ,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)}, +
  199.                 {use     ,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  200.                 {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  201.                 {class   ,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  202.                 {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  203.     Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  204.     set RegistryErrorIndex = $($R0)
  205.     Ifstr $(RegistryErrorIndex) != NO_ERROR
  206.         CloseRegKey $(SoftProductKey)
  207.         CloseRegKey $(SoftNetRuleKey)
  208.         CloseRegKey $(SoftServiceKey)
  209.         CloseRegKey $(SoftLinkageKey)
  210.         CloseRegKey $(KeyParameters)
  211.         goto fatalRegistry
  212.     endif
  213.     Set NewValueList = {{NbProvider,$(NoTitle),$(!REG_VT_SZ),"_nb"}}
  214.     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  215.     Ifstr $(RegistryErrorIndex) != NO_ERROR
  216.         CloseRegKey $(SoftProductKey)
  217.         CloseRegKey $(SoftNetRuleKey)
  218.         CloseRegKey $(SoftServiceKey)
  219.         CloseRegKey $(SoftLinkageKey)
  220.         goto fatalRegistry
  221.     endif
  222.     CloseRegKey $(SoftProductKey)
  223.     CloseRegKey $(SoftNetRuleKey)
  224.     CloseRegKey $(SoftServiceKey)
  225.     CloseRegKey $(SoftLinkageKey)
  226.     endif
  227.     goto writeparameters
  228. writeparameters = +
  229.     CloseRegKey $(KeyParameters)
  230.     EndWait
  231.     goto successful
  232. bindingadapter =+
  233.     set Error = "Binding: Sorry, not yet implemented."
  234.     goto fatal
  235. removeadapter = +
  236.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  237.     $(ProductSoftwareName)
  238.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  239.     Debug-Output "ShellCode error"
  240.     goto ShellCodeError
  241.     endif
  242.     set RegistryErrorIndex = $($R0)
  243.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  244.     goto fatalregistry
  245.     endif
  246.     goto end
  247. UpgradeSoftware = +
  248.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  249.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  250.     Ifstr $(KeyProduct) != $(KeyNull)
  251.         GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  252.         set Version = *($(VersionInfo), 4)
  253.         Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  254.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  255.         Debug-Output "ShellCode error"
  256.         goto ShellCodeError
  257.         endif
  258.         set !UG_Filename = $($R0)
  259.         ifstr(i) $(!UG_Filename) != ""
  260.         install "Install-Update"
  261.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  262.             goto fatal
  263.         endif
  264.         endif
  265.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  266.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  267.         ifint $(Version) != $(ProductVersion)
  268.         endif
  269.         CloseRegKey $(KeyProduct)
  270.     else
  271.         goto fatalregistry
  272.     endif
  273.     endif
  274.     goto end
  275. successful = +
  276.     goto end
  277. warning = +
  278.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  279.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  280.     goto ShellCodeError
  281.     endif
  282.     ifstr(i) $($R1) == "OK"
  283.     goto $(to)
  284.     else-ifstr(i) $($R1) == "CANCEL"
  285.     goto $(from)
  286.     else
  287.     goto "end"
  288.     endif
  289. nonfatalinfo = +
  290.     Set CommonStatus = STATUS_USERCANCEL
  291.     Set Severity = STATUS
  292.     goto nonfatalmsg
  293. nonfatal = +
  294.     Set Severity = NONFATAL
  295.     goto nonfatalmsg
  296. nonfatalmsg = +
  297.     ifstr(i) $(Error) == ""
  298.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  299.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  300.         goto ShellCodeError
  301.     endif
  302.     set Error = $($R0)
  303.     endif
  304.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  305.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  306.     goto ShellCodeError
  307.     endif
  308.     ifstr(i) $($R1) == "OK"
  309.     goto $(from)
  310.     else
  311.     goto "end"
  312.     endif
  313. fatalregistry = +
  314.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  315.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  316.     goto ShellCodeError
  317.     endif
  318.     set Error = $($R0)
  319.     goto fatal
  320. fatal = +
  321.     ifstr(i) $(Error) == ""
  322.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  323.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  324.         goto ShellCodeError
  325.     endif
  326.     set Error = $($R0)
  327.     endif
  328.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  329.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  330.     goto ShellCodeError
  331.     endif
  332.     goto setfailed
  333. ShellCodeError = +
  334.     set DlgType      = "MessageBox"
  335.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  336.     set STF_MB_TEXT  = $(ShellCodeErrorText) 
  337.     set STF_MB_TYPE  = 1
  338.     set STF_MB_ICON  = 3
  339.     set STF_MB_DEF   = 1
  340.     ui start "Error Message"
  341.     goto setfailed
  342. setfailed = +
  343.     set CommonStatus = STATUS_FAILED
  344.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  345.     set OEM_ABANDON_ON = FALSE
  346.     goto removeadapter
  347.     endif
  348.     goto end
  349. end = +
  350.     goto term
  351. term = +
  352.     Return $(CommonStatus)
  353. [Install-Option]
  354.     set STF_VITAL = ""
  355.     ifstr(i) $(AddCopy) == "YES"
  356.     AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  357.     AddSectionFilesToCopyList Files-App $(SrcDir) $(!STF_WINDOWSSYSPATH)
  358.     endif
  359.     ifstr(i) $(DoCopy) == "YES"
  360.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  361.        CopyFilesInCopyList
  362.     endif
  363.     ifstr(i) $(DoConfig) == "YES"
  364.     endif
  365.     Exit
  366. [Install-Update]
  367.    set STF_VITAL        = ""
  368.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  369.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  370.    AddSectionFilesToCopyList Files-App $(SrcDir) $(!STF_WINDOWSSYSPATH)
  371.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  372.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  373.    CopyFilesInCopyList
  374.    exit
  375. [Source Media Descriptions]
  376.     1  = "McAfee Firewall Installation Disk #1"  , TAGFILE = CSPCFW.SYS
  377. [ProductType]
  378. STF_PRODUCT  = Winnt
  379. STF_PLATFORM = I386
  380. [Files-Inf]
  381. 1,      oemsetup.inf,    SIZE=1000,     RENAME=$(!UG_Filename)
  382. [Files-MCAFEEFW]
  383. 1,CSPCFW.SYS , SIZE=999
  384. [Files-App]
  385. [LanguagesSupported]
  386.     ENG
  387. [OptionsTextENG]
  388.     NDISPERF     = "McAfee Firewall"
  389. [FileConstantsENG]
  390. ProCaption   = "Windows NT Setup"
  391. ProCancel    = "Cancel"
  392. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  393.            "Are you sure you want to cancel copying files?"
  394. ProCancelCap = "Network Setup Message"
  395. ProText1     = "Copying:"
  396. ProText2     = "To:"
  397. FunctionTitle   = "McAfee Firewall Network Driver"
  398. ProductSoftwareDescription = "McAfee Firewall Network Driver"
  399. ProductSoftwareDisplayName = "McAfee Firewall Network Driver"
  400. ProductSoftwareTitle    = "McAfee Firewall Network Driver"
  401. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  402. ShellCodeErrorText      = "Shell Code Error."
  403. [DialogConstantsENG]
  404. Help        = "&Help"
  405. Exit        = "Cancel"
  406. OK          = "OK"
  407. HelpContext = ""
  408. Continue    = "Continue"
  409. Cancel      = "Cancel"
  410. [FileDependentDlgENG]
  411. GroupLabel = "Optimization:"
  412. Radio1 = "&Minimize Memory Used"
  413. Radio2 = "&Balance"
  414. Radio3 = "M&aximize Throughput && Connections"
  415. DlgType = "Radio"               
  416. DlgTemplate = "NBF"             
  417. Caption = $(FunctionTitle)
  418. OptionsGreyed = {}
  419. HelpContext = $(!IDH_DB_OEMNXPNB_INS)
  420.